home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
prg_casm
/
snpd9611.zip
/
DIRPORT.C
< prev
next >
Wrap
Text File
|
1996-11-24
|
1KB
|
50 lines
.I 0 4
/* +++Date last modified: 16-May-1996 */
/*
** WIN 32 & OS/2 support functions for DIRPORT.H
.D 1 2
.I 4 6
**
** 15-May-96 David Nugent Moved OS/2 functions from
** dirport.h to here
** Fixed for 32-bit OS/2
** Allowed compilation under
** DOS for easier makefiles
.I 7 2
/* #error "DirPort.c is NOT intended for DOS programs ..." */
#else
.D 8 2
.I 12 23
#if defined(OS2)
int FIND_FIRST (char * spec, unsigned attr, DOSFileData *ff)
{
_SYSINT cnt = 1;
ff->dh = (HDIR) -1;
return (int) DosFindFirst ((PSZ)spec, &ff->dh, (_SYSINT)attr, &ff->f,
(_SYSINT)sizeof(struct _FILEFINDBUF), &cnt, FINDLVL);
}
int FIND_NEXT (DOSFileData *ff)
{
_SYSINT cnt = 1;
return (int) DosFindNext (ff->dh, &ff->f, sizeof(struct _FILEFINDBUF), &cnt);
}
int FIND_END (DOSFileData *ff)
{
return (int) DosFindClose (ff->dh);
}
#else /* WIN32 & WINNT */
.I 92 1
.D 93 1
.I 121 4
#endif /* OS/2 */
#endif /* MS-DOS */